package com.yanqu.road.entity.log;

import com.yanqu.road.entity.FieldTypeAnnotation;

import java.util.Date;

@FieldTypeAnnotation(tableName = "t_l_ck_user_silver", desc = "银两消耗", autoSave = true, uploadCk = true)
public class LogUserSilverChange extends ServerBaseLog {
    @FieldTypeAnnotation(desc = "玩家id", isIndex = true)
    private long userId;
    @FieldTypeAnnotation(desc = "消耗子类型")
    private int sonType;
    @FieldTypeAnnotation(desc = "消耗数量")
    private String count;
    @FieldTypeAnnotation(desc = "日期")
    private Date date;

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public int getSonType() {
        return sonType;
    }

    public void setSonType(int sonType) {
        this.sonType = sonType;
    }

    public String getCount() {
        return count;
    }

    public void setCount(String count) {
        this.count = count;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public LogUserSilverChange(long userId, int sonType, String count, Date date) {
        this.userId = userId;
        this.sonType = sonType;
        this.count = count;
        this.date = date;
    }
}
